Resource URL: /platform/<<version=3>>/protocols/nfs/nlm/sessions/<ID>

    Overview: This resource applies the standard collection pattern to
              individual NLM sessions on NFS. ID in the resource path is the
              hostname.

     Methods: GET, DELETE

********************************************************************************

Method GET: Retrieve all lock state for a single client.

       URL: GET /platform/<<version=3>>/protocols/nfs/nlm/sessions/<ID>

Query arguments:
cluster_ip=<string> An IP address for which NSM has client records
      zone=<string> Represents an extant auth zone

GET response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "additionalProperties": false, 
      "type": "object", 
      "properties": {
        "sessions": {
          "minItems": 0, 
          "items": {
            "type": "object", 
            "description": "Describes host/callback information for a NSM monitor entry", 
            "properties": {
              "notify_error": {
                "type": "string", 
                "description": "Last error recieved attempting to notify this client"
              }, 
              "node_ip": {
                "type": "string", 
                "description": "An IP address for which NSM has client records"
              }, 
              "host_type": {
                "enum": [
                  "client", 
                  "server", 
                  "reverse", 
                  "expired"
                ], 
                "type": "string", 
                "description": "The sort of host that this entry represents"
              }, 
              "hostname": {
                "type": "string", 
                "description": "The host being monitored"
              }, 
              "is_active": {
                "type": "boolean", 
                "description": "Whether or not the client is actively being monitored"
              }, 
              "delegates": {
                "items": {
                  "type": "integer"
                }, 
                "type": "array"
              }, 
              "last_modified": {
                "type": "integer", 
                "description": "Unix time in seconds that the client was last modified (monitored or unmonitored)"
              }, 
              "notify_last_attempt": {
                "type": "integer", 
                "description": "Unix time in seconds when we last attempted to notify this clients"
              }, 
              "notify_attempts_remaining": {
                "type": "integer", 
                "description": "Number of times we will attempt to notify this client before giving up"
              }
            }
          }, 
          "type": "array", 
          "maxItems": 4294967295
        }
      }
    }
  ]
}

********************************************************************************

Method DELETE: Delete all lock state for this host.

          URL: DELETE /platform/<<version=3>>/protocols/nfs/nlm/sessions/<ID>

Query arguments:
cluster_ip=<string> An IP address for which NSM has client records
      zone=<string> Represents an extant auth zone
  refresh=<boolean> if set to true, the client will be given a chance to
                    reclaim its locks before they are destroyed

There is no JSON response body for this method.
